{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { Keyframes } from '@ant-design/cssinjs';\nvar genNotificationPlacementStyle = function genNotificationPlacementStyle(token) {\n  var _ref;\n  var componentCls = token.componentCls,\n    width = token.width,\n    notificationMarginEdge = token.notificationMarginEdge;\n  var notificationTopFadeIn = new Keyframes('antNotificationTopFadeIn', {\n    '0%': {\n      marginTop: '-100%',\n      opacity: 0\n    },\n    '100%': {\n      marginTop: 0,\n      opacity: 1\n    }\n  });\n  var notificationBottomFadeIn = new Keyframes('antNotificationBottomFadeIn', {\n    '0%': {\n      marginBottom: '-100%',\n      opacity: 0\n    },\n    '100%': {\n      marginBottom: 0,\n      opacity: 1\n    }\n  });\n  var notificationLeftFadeIn = new Keyframes('antNotificationLeftFadeIn', {\n    '0%': {\n      right: {\n        _skip_check_: true,\n        value: width\n      },\n      opacity: 0\n    },\n    '100%': {\n      right: {\n        _skip_check_: true,\n        value: 0\n      },\n      opacity: 1\n    }\n  });\n  return _ref = {}, _defineProperty(_ref, \"&\".concat(componentCls, \"-top, &\").concat(componentCls, \"-bottom\"), {\n    marginInline: 0\n  }), _defineProperty(_ref, \"&\".concat(componentCls, \"-top\"), _defineProperty({}, \"\".concat(componentCls, \"-fade-enter\").concat(componentCls, \"-fade-enter-active, \").concat(componentCls, \"-fade-appear\").concat(componentCls, \"-fade-appear-active\"), {\n    animationName: notificationTopFadeIn\n  })), _defineProperty(_ref, \"&\".concat(componentCls, \"-bottom\"), _defineProperty({}, \"\".concat(componentCls, \"-fade-enter\").concat(componentCls, \"-fade-enter-active, \").concat(componentCls, \"-fade-appear\").concat(componentCls, \"-fade-appear-active\"), {\n    animationName: notificationBottomFadeIn\n  })), _defineProperty(_ref, \"&\".concat(componentCls, \"-topLeft, &\").concat(componentCls, \"-bottomLeft\"), _defineProperty({\n    marginInlineEnd: 0,\n    marginInlineStart: notificationMarginEdge\n  }, \"\".concat(componentCls, \"-fade-enter\").concat(componentCls, \"-fade-enter-active, \").concat(componentCls, \"-fade-appear\").concat(componentCls, \"-fade-appear-active\"), {\n    animationName: notificationLeftFadeIn\n  })), _ref;\n};\nexport default genNotificationPlacementStyle;","map":{"version":3,"names":["Keyframes","genNotificationPlacementStyle","token","componentCls","width","notificationMarginEdge","notificationTopFadeIn","marginTop","opacity","notificationBottomFadeIn","marginBottom","notificationLeftFadeIn","right","_skip_check_","value","marginInline","animationName","marginInlineEnd","marginInlineStart"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/notification/style/placement.js"],"sourcesContent":["import { Keyframes } from '@ant-design/cssinjs';\nconst genNotificationPlacementStyle = token => {\n  const {\n    componentCls,\n    width,\n    notificationMarginEdge\n  } = token;\n  const notificationTopFadeIn = new Keyframes('antNotificationTopFadeIn', {\n    '0%': {\n      marginTop: '-100%',\n      opacity: 0\n    },\n    '100%': {\n      marginTop: 0,\n      opacity: 1\n    }\n  });\n  const notificationBottomFadeIn = new Keyframes('antNotificationBottomFadeIn', {\n    '0%': {\n      marginBottom: '-100%',\n      opacity: 0\n    },\n    '100%': {\n      marginBottom: 0,\n      opacity: 1\n    }\n  });\n  const notificationLeftFadeIn = new Keyframes('antNotificationLeftFadeIn', {\n    '0%': {\n      right: {\n        _skip_check_: true,\n        value: width\n      },\n      opacity: 0\n    },\n    '100%': {\n      right: {\n        _skip_check_: true,\n        value: 0\n      },\n      opacity: 1\n    }\n  });\n  return {\n    [`&${componentCls}-top, &${componentCls}-bottom`]: {\n      marginInline: 0\n    },\n    [`&${componentCls}-top`]: {\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationTopFadeIn\n      }\n    },\n    [`&${componentCls}-bottom`]: {\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationBottomFadeIn\n      }\n    },\n    [`&${componentCls}-topLeft, &${componentCls}-bottomLeft`]: {\n      marginInlineEnd: 0,\n      marginInlineStart: notificationMarginEdge,\n      [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n        animationName: notificationLeftFadeIn\n      }\n    }\n  };\n};\nexport default genNotificationPlacementStyle;"],"mappings":";AAAA,SAASA,SAAS,QAAQ,qBAAqB;AAC/C,IAAMC,6BAA6B,GAAG,SAAhCA,6BAA6B,CAAGC,KAAK,EAAI;EAAA;EAC7C,IACEC,YAAY,GAGVD,KAAK,CAHPC,YAAY;IACZC,KAAK,GAEHF,KAAK,CAFPE,KAAK;IACLC,sBAAsB,GACpBH,KAAK,CADPG,sBAAsB;EAExB,IAAMC,qBAAqB,GAAG,IAAIN,SAAS,CAAC,0BAA0B,EAAE;IACtE,IAAI,EAAE;MACJO,SAAS,EAAE,OAAO;MAClBC,OAAO,EAAE;IACX,CAAC;IACD,MAAM,EAAE;MACND,SAAS,EAAE,CAAC;MACZC,OAAO,EAAE;IACX;EACF,CAAC,CAAC;EACF,IAAMC,wBAAwB,GAAG,IAAIT,SAAS,CAAC,6BAA6B,EAAE;IAC5E,IAAI,EAAE;MACJU,YAAY,EAAE,OAAO;MACrBF,OAAO,EAAE;IACX,CAAC;IACD,MAAM,EAAE;MACNE,YAAY,EAAE,CAAC;MACfF,OAAO,EAAE;IACX;EACF,CAAC,CAAC;EACF,IAAMG,sBAAsB,GAAG,IAAIX,SAAS,CAAC,2BAA2B,EAAE;IACxE,IAAI,EAAE;MACJY,KAAK,EAAE;QACLC,YAAY,EAAE,IAAI;QAClBC,KAAK,EAAEV;MACT,CAAC;MACDI,OAAO,EAAE;IACX,CAAC;IACD,MAAM,EAAE;MACNI,KAAK,EAAE;QACLC,YAAY,EAAE,IAAI;QAClBC,KAAK,EAAE;MACT,CAAC;MACDN,OAAO,EAAE;IACX;EACF,CAAC,CAAC;EACF,mDACOL,YAAY,oBAAUA,YA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